using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Test2.Models.Mapping;

namespace Test2.Models
{
    public partial class DivingContext : DbContext
    {
        static DivingContext()
        {
            Database.SetInitializer<DivingContext>(null);
        }

        public DivingContext()
            : base("Name=DivingContext")
        {
        }

        public DbSet<Diver> Divers { get; set; }
        
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new DiverMap());
            modelBuilder.Configurations.Add(new JumpMap());
            
        }
    }
}
